package com.ruoyi.life.controller;

import com.ruoyi.common.core.web.domain.JiMuReportResult;
import com.ruoyi.life.domain.ApartBillReport;
import com.ruoyi.life.domain.SfReceiptDetail;
import com.ruoyi.life.service.IApartBillReportService;
import com.ruoyi.life.service.ISfReceiptDetailService;
import com.ruoyi.omp.api.domain.FeApartmentBill;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Api(tags = "积木报表report")
@RestController
@RequestMapping("/jimuReport")
public class JimuReportController {

    @Autowired
    private IApartBillReportService apartBillReportService;

    @Autowired
    private ISfReceiptDetailService sfReceiptDetailService;

    /***
     *
     * @param ApartBillReport
     * @return
     */
    @GetMapping("/apartBillReport")
    @ApiOperation(value = "公寓账单报表", notes = "公寓账单报表")
    public JiMuReportResult listNyCheckReport(ApartBillReport apartBillReport) {
        //List<NyCheckReport> result = nyCheckReportService.selectNyCheckReportList(nyCheckReport);
        List<ApartBillReport> result = apartBillReportService.selectApartBillReport(apartBillReport);
        return JiMuReportResult.success(result);
    }

    /***
     *
     * @param ApartBillReport
     * @return
     */
    @GetMapping("/apartBillReport1")
    @ApiOperation(value = "公寓账单报表", notes = "公寓账单报表")
    public List<ApartBillReport> listNyCheckReport1(ApartBillReport apartBillReport) {
        //List<NyCheckReport> result = nyCheckReportService.selectNyCheckReportList(nyCheckReport);
        List<ApartBillReport> result = apartBillReportService.selectApartBillReport(apartBillReport);
        return result;
    }

}
